#!/usr/bin/env python
#-*- coding:utf-8 -*-
# author:Vergil
# datetime:2018/12/15 0:25
# software: PyCharm
from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
from django.views.decorators.cache import cache_page

app_name = 'music'
urlpatterns = [
    path('', views.musicViewIndex.as_view(), name='index'),
    path('music/', views.musicListView.as_view(), name='music'),
    path('<int:pk>/music_category/', views.musicCategoryView.as_view(), name='music_category'),
    path('music_upload/', views.music_upload, name='music_upload'),
    path('<str:pk>/music_detail/', views.music_detail, name='music_detail'),
    path('music_search/', views.music_search, name='music_search'),
    path('music_like/', views.music_like, name='music_like')
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
